<?php
        if (isset($userfile)){
                if (copy ($userfile, '/tmp/'.$userfile_name))
                        echo 'ok';
                else
                        echo 'false';
        }
?>
<FORM ENCTYPE="multipart/form-data" ACTION="fl.php" METHOD=POST>
   <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="1000000">
      File: <br><INPUT NAME="userfile" TYPE="file">
      <br><INPUT TYPE="submit" VALUE="Send File">
</FORM>
